package edu.hunan.cxb18.service;

import edu.hunan.cxb18.car.Car;
import edu.hunan.cxb18.error.impl.UserException;
import edu.hunan.cxb18.pojo.Address;
import edu.hunan.cxb18.pojo.Order;
import edu.hunan.cxb18.pojo.User;

/**
 * @author AuthorName
 * @create 2020-06-11 1:08
 */
public interface OrderService {
    public String createOrder(User user, Car car) throws UserException;

    /**
     * @param string
     * @return
     */
    public Order queryByPidWithItems(String pidStr) throws UserException;

    /**
     * @param i
     */
    public void deleteOrderItem(Integer pid) throws UserException;

    public Order queryByOidWithItems(String oid) throws UserException;
    public void payOrder(Address address) throws UserException;
    public void checkQty(String pidStr,Integer qty) throws UserException;
}
